<?php
$this->title = "我的信息";
?>
<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;

?>
<div class="main mb20">

    <!-- Nav tabs -->
    <div role="tabpanel" style="position:relative;">

        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation"  class="active"><a href="<?= Yii::$app->urlManager->createUrl('member/info') ?>">个人资料</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/index') ?>">我的揭示版</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/collect') ?>">收藏</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/comment') ?>">评论</a></li>            
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/post') ?>">我发表的</a></li>
            <li role="presentation"><a href="<?= Yii::$app->urlManager->createUrl('member/message') ?>">消息</a></li>
        </ul>


        <!-- Tab panes -->
        <div class="tab-content pd20">
            <div role="tabpanel" class="tab-pane active" id="four">
<div class="row">

    <div class="col-xs-4 col-xs-offset-1">
        <center><img id="cirphoto" src="<?=Yii::$app->urlManager->baseUrl.'/'.$user['img']?>" alt="<?=$user['username']?>" width="200" height="200"></center>
        <hr>
        <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>
        <div class="form-group">
            <p class="help-block">图片大小建议200PX*200PX。</p>
        </div>
        <?=$form->field($upload,'file')->fileInput()->label(false)?>
        <div class="form-group">
            <?=Html::submitButton("上传",['class'=>'btn btn-primary btn-block'])?>
        </div>
        <?php ActiveForm::end();?>

    </div>

    <div class="col-xs-6 col-xs-offset-1">
        <?php $form = ActiveForm::begin([
            'id' => 'form-signup',
            'options' => ['class' => 'form-horizontal'],
            'fieldConfig' => [
                'template' => "<div class=\"col-xs-3\">{label}</div><div class=\"col-xs-8\">{input}</div>\n{error}",
            ],
        ]); ?>
        <hr>
        <?= $form->field($info,'nickname')->textInput(['value'=>$model->nickname])->label("昵称")?>
        <?= $form->field($info,'signature')->textInput(['value'=>$model->signature])->label("签名")?>
        <hr>
        <?= $form->field($info,'username')->textInput(['value'=>$model->username,'readonly'=>'readonly'])->label("用户名")?>
        <?= $form->field($info,'email')->textInput(['value'=>$model->email,'readonly'=>'readonly'])->label("邮箱")?>
        <?= $form->field($info,'password')->passwordInput(['placeholder'=>'不填则使用原密码'])->label("密码")?>
        <?= $form->field($info,'rePassword')->passwordInput(['placeholder'=>'重复密码不一样依旧使用原密码'])->label("重复密码")?>
        
        <div class="form-group">
            <div class="col-xs-8 col-xs-offset-3">
                <?= Html::submitButton('更新', ['class' => 'btn btn-block btn-primary']) ?>
            </div>
        </div>
        <?php  ActiveForm::end()?>
    </div>


</div>


            </div>

        </div>

    </div>
    <!-- Nav tabs -->
</div>


